<?php 

/*var_dump($_POST);*/
include_once './03-08-001.php';

$users = include_once'./user.php';

/*var_dump($users);*/

foreach ($users as $user) {
	if ($user['username']==$_POST['username']) {
		if ($user['password']==md5($_POST['password'])){
			session_start();
			$_SESSION['username']=$user['username'];
			$_SESSION['nikename']=$user['nikename'];
			success('登陆成功','./index.php',3);
			/*echo "登陆成功";*/
			exit;
		}
	}
}
error('您输入的账号或密码错误！','./index.php',3)
/*echo "您输入的账号或密码错误！";*/



 ?>